/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package entities;

import java.io.Serializable;

/**
 *
 * @author Andrés Felipe
 */
public class SupplierXpymePK implements Serializable {
    private int supplierindentification;
    private int pymeidentification;

    public SupplierXpymePK() {
    }

    public SupplierXpymePK(int supplierindentification, int pymeidentification) {
        this.supplierindentification = supplierindentification;
        this.pymeidentification = pymeidentification;
    }

    public int getSupplierindentification() {
        return supplierindentification;
    }

    public void setSupplierindentification(int supplierindentification) {
        this.supplierindentification = supplierindentification;
    }

    public int getPymeidentification() {
        return pymeidentification;
    }

    public void setPymeidentification(int pymeidentification) {
        this.pymeidentification = pymeidentification;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (int) supplierindentification;
        hash += (int) pymeidentification;
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof SupplierXpymePK)) {
            return false;
        }
        SupplierXpymePK other = (SupplierXpymePK) object;
        if (this.supplierindentification != other.supplierindentification) {
            return false;
        }
        if (this.pymeidentification != other.pymeidentification) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "entities.SupplierXproductPK[ supplierindentification=" + supplierindentification + ", productid=" + pymeidentification + " ]";
    }
    
}
